package com.qf.hotel.dao;

import com.qf.hotel.pojo.Food;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * 菜品持久层接口
 */
public interface FoodDao {
    /**
     * 查询菜品
     *  有条件和无条件两种情况
     * @param food
     * @return
     * @throws SQLException
     */
    List<Map<String, Object>> findByCondition(Food food) throws SQLException;

    /**
     * 添加Food
     * @param food
     * @return
     */
    int save(Food food) throws SQLException;

}
